﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%@ Import Namespace="VERKProjectHopur16.Helpers" %> 
<%
    if (Request.IsAuthenticated) {
%>
        <%: Lang.GetText("Menu", "Welcome") %> <b><%: Page.User.Identity.Name %></b>!<br />
        <% if (Page.User.IsInRole("Administrators"))
        { %>
        [ <%: Html.ActionLink(Lang.GetText("Menu", "Log_Off"), "LogOff", "Account") %> ]<br />
        [ <%: Html.ActionLink(Lang.GetText("Menu", "Change_Password"), "ChangePassword", "Account") %> ]<br />
        [ <%: Html.ActionLink(Lang.GetText("Menu", "Administrate_content"), "Index", "Admin") %> ]<br />
        <%}%>
        <% else
        { %>
        [ <%: Html.ActionLink(Lang.GetText("Menu", "Log_Off"), "LogOff", "Account")%> ]<br />
        [ <%: Html.ActionLink(Lang.GetText("Menu", "Change_Password"), "ChangePassword", "Account")%> ]<br />
        [ <%: Html.ActionLink(Lang.GetText("Menu", "Profile"), "Index", "User") %> ]<br />
        <%}%>
<%
    }
    else {
%> 
        [ <%: Html.ActionLink(Lang.GetText("Menu", "Log_On"), "LogOn", "Account") %> ]
        [ <%: Html.ActionLink(Lang.GetText("Menu", "Register"), "Register", "Account")%> ]
<%
    }
%>
